<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport"
          content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">

    <title>{$shmc}-订单确认</title>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/Css/pay.css?id=11"/>
    <script>
        function zf(id) {
            var orderid = $('#orderid').val();
            var siji = $('#siji').val();

            $.ajax({
                type: "POST",
                url: "__CONTROLLER__/qr/",

                cache: false,
                dataType: "json",
                data: {
                    id: id,
                    orderid: orderid,
                    siji: siji

                },

                success: function (data) {
                    if (data === 0) {
                        $('#submit').attr('onclick', '()');
                        $('#submit2').attr('onclick', '()');
                        $('#submit2').val('已处理');
                        $('#submit').val('已处理');
                        alert('操作成功');

                    }
                    else {

                        alert('操作失败');
                    }
                }
            });

        }


    </script>
</head>
<body>

<div class="zt">

    <div style="width: 100%;text-align: center">

        <br/>
        <div>订单确认</div>
    </div>

    <div class="cardexplain">

        <ul class="round">

            <li class="nob xiadan-form">
                <table>

                    <tr>
                        <td>
                            <form role="form" id="tab">
                                <span><font  >出发地：</font>{$order['start']}</span>
                                <span><font  >目的地：</font>{$order['end']}</span>
                                <span><font  >预约时间：</font>{$order['starttime']}</span>
                                <span><font  >订单类型：</font>{$order['fs']}</span>
                                <if condition="$order['fs'] neq '代运订单'">
                                    <span><font  >成人：</font>{$order['num']}人;<font  >儿童：</font>{$order['child']}人</span>
                                    <elseif condition="$order['fs'] eq '代运订单'"/>
                                    <span><font  >收货人：</font>{$order['xingming']};<font
                                             >电话：</font>{$order['dianhua2']}</span>
                                </if>
                                <span><font  >订单状态：</font>{$order['fs']}</span>
                                <if condition="$order['pay_statu'] eq '0'">未支付
                                    <elseif condition="$order['pay_statu'] eq '1'"/>
                                    已支付
                                    <elseif condition="$order['pay_statu'] eq '999'"/>
                                    <font color="red">已退款</font></if>
                                <span><font  >支付方式：</font><if condition="$order.is_ypay eq 1">余额支付<else/>微信支付</if></span>
                                <span><font  >价  格：</font>￥{$order['price']}</span>
                                <span><font color="red">联系方式：</font>{$lx['name']}:<a
                                        href="tel:{$order['dianhua']}">{$order.dianhua}</a></span>
                                <input type="hidden" name="orderid" id='orderid' value="{$order['orderid']}">
                                <span><font  >备  注：</font>{$order['crc']}</span>
                                <span><font  >航  班：</font>{$order['hangban']}</span>
                                <span><a href="http://apis.map.qq.com/tools/poimarker?type=0&marker=coord:{$order['end_x']};title:目的地;&key=OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77&referer=myapp">点击这里导航</a></span>
                                <span><a href="http://apis.map.qq.com/tools/poimarker?type=0&marker=coord:{$order['start_x']};title:客户所在地;&key=OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77&referer=myapp">点击这里显示客户所在位置</a></span>
                                <span><font  >司  机：</font>{$order['siji']}
                                    <if condition="$order['siji'] eq ''">
<select name="siji" id="siji">
 <!-- <option selected="selected">请选择司机</option>-->
  <volist name="siji" id="vo">
  <option value="{$vo.xingming}">{$vo.xingming}</option>
  </volist>
</select>
                                </if>
</span>

                            </form>

                        <td>
                    </tr>
                </table>


        </ul>
    </div>


    <div id="payDom" class="cardexplain">

        <div class="footReturn" style="text-align:center">
            <if condition="$order['qy_statu'] eq '0'">
                <input type="button" onclick="zf(1)" class="submit" id="submit" value="确认有车"/>
                <input type="button" onclick="zf(2)" class="submit" id="submit2" value="确认无车"/>
                <else/>
                <input type="button" class="submit" id="submit" value="已处理"/>
            </if>
        </div>

    </div>
    <div class="foots"><span></span></div>
    <div class="footer">

        <span></span>
    </div>
    <div style="clean:both"></div>
</div>
</body>
</html>